// pages/adress/adress.js
Page({

  data: {
    adressInfo: {
      userName: '',
      postalCode: '',
      region: '',
      adressDetail: '',
      telNumber: ''
    }
  },

  getAdress() {
    wx.chooseAddress({
      success: ({ cityName, countyName, detailInfo, detailInfoNew, nationalCode, postalCode,provinceName,streetName,telNumber,userName }) => {
        this.setData({
          adressInfo: {
            userName,
            postalCode,
            region: [provinceName, cityName, countyName ].join(' '),
            adressDetail: detailInfo,
            telNumber
          }

        })
      }
    })
  }
})